package com.gopay.common.cps.dao.bt.impl;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.cps.dao.bt.CpsGainOperDtlDAO;
import com.gopay.common.domain.cps.CpsGainsStlOrderEditLog;

/**
 * 
 * @CpsGainOperDtlDAOImpl.java
 * @author mz
 * @2013-7-31 下午1:44:49 www.gopay.com.cn Inc.All rights reserved.
 */
@Repository("cpsGainOperDtlDAO")
public class CpsGainOperDtlDAOImpl extends BaseDAOImpl<CpsGainsStlOrderEditLog, Serializable> implements CpsGainOperDtlDAO {

    @Override
    public List<CpsGainsStlOrderEditLog> getOperDtlList(String recordId) {
        HashMap<String, Object> map = new HashMap<String, Object>();
        map.put("recordId", recordId);
        String hql = "from CpsGainsStlOrderEditLog where operTargetSq=:recordId order by createdTs desc ";
        return findByHql(hql,map);
    }
}
